package com.topera.eduservice.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.topera.eduservice.entity.EduCourse;
import com.topera.eduservice.entity.frontvo.CourseFrontVo;
import com.topera.eduservice.entity.frontvo.CourseWebVo;
import com.topera.eduservice.entity.vo.CourseInfoVo;
import com.topera.eduservice.entity.vo.CoursePublish;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author puzhenjiang
 * @since 2020-05-18
 */
public interface EduCourseService extends IService<EduCourse> {

    /**
     * 添加课程信息
     * @param courseInfoVo
     */
    String saveCourseInfo(CourseInfoVo courseInfoVo);

    /**
     * 获取发布课程的信息
     * @param courseId
     * @return
     */
    CoursePublish getPublishCourseInfo(String courseId);

    /**
     * 前台分页获取课程信息
     * @param pageCourse
     * @param courseFrontVo
     * @return
     */
    Map<String, Object> getCouseFrontInfo(Page<EduCourse> pageCourse, CourseFrontVo courseFrontVo);

    CourseWebVo getBaseCourseInfo(String courseId);
}
